import request from '@/utils/request'
const apix = 'dev-api'
// api地址
const api = {
	lounge_list: apix + '/talent/lounge/list',
	lounge_export: apix + '/talent/lounge/export',
	talent_lounge: apix + '/talent/lounge/',
	// talent_lounge: apix + '/talent/lounge',
	talent_loungeIds: apix + '/talent/lounge/',
}

//查询会客厅活动
export function loungeList(page) {
	return request.get(api.lounge_list, {
		...page
	})
}
//导出会客厅活动
export function loungeExport(obj) {
	return request.post(api.lounge_export, {
		...obj
	})
}
//获取会客厅活动活动与信息
export function loungeId(id) {
	return request.get(api.talent_lounge + id)
}
//新增活动
export function addlounge(obj) {
	return request.post(api.talent_lounge, {
		...obj
	})
}
//修改活动
export function putlounge(obj) {
	return request.put(api.talent_lounge, {
		...obj
	})
}
//删除活动
export function dellounge(id) {
	return request.delete(api.talent_lounge + id)
}